let mysql = require('mysql');

let connect = mysql.createConnection({
    host: 'localhost',
    port: '3306',
    user: 'root',
    password: '123456',
    database: '1809a'
})

connect.connect(err => {
    if (!err) {
        console.log('连接成功')
    } else {
        console.log('连接失败')
    }
})

module.exports = connect;